package bean;

import java.io.Serializable;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.PostConstruct;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;

import controller.BusinessDelegateMail;
import controller.BusinessDelegateWeb;
import dto.*;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean
public class emailBean implements Serializable {

	private BusinessDelegateMail businessDelegateMail;
	
	private List<ItemAuditoriaDTO> logs;

	@PostConstruct
    public void init(){
    	
		this.logs = getBusinessDelegateMail().listarItemAuditoria();
    }

	
	public List<ItemAuditoriaDTO> getLogs() {
		return logs;
	}

	public void setLogs(List<ItemAuditoriaDTO> logs) {
		this.logs = logs;
	}
	
	 public String volverAlMenu(){
	    	return "menu";
	 }
	
	 public BusinessDelegateMail getBusinessDelegateMail(){
	    	
	    	return new BusinessDelegateMail();
	    	
	    }

}
